<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common_css :: commonHeader('表校验规则管理')"></head>
<body>
<!--搜索框-->
<form method="post" id="tabfrom">
    <div style="padding:2px" class="easyui-panel" title="数据查询">
        <table class="form-table">
            <tr>
                <td align="right" width="10%">字段名称：</td>
                <td align="left">
                    <input id="selColumnName" style="width:150px"/>
                </td>
                <td align="right" width="10%">字段中文名称：</td>
                <td align="left">
                    <input id="selColumnChineseName" style="width:150px"/>
                </td>
                <td align="right" width="10%">字段类型：</td>
                <td align="left">
                    <input style="width:150px" id="selColumnType"
                           data-options="valueField:'value',textField:'showmsg' ,panelHeight:'auto',prompt:'==请选择=='"
                           class="easyui-combobox"/>
                </td>
                <td align="right" width="10%">状态：</td>
                <td align="left">
                    <input style="width:150px" id="selColumnStatus"
                           data-options="valueField:'value',textField:'showmsg' ,panelHeight:'auto',prompt:'==请选择=='"
                           class="easyui-combobox"/>
                    <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearch();">查询</a>
                </td>
            </tr>
        </table>
    </div>
    <br>
</form>
<div id="toolbar">
    <shiro:hasPermission name="reportworld:table:detail:standard:check:add">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add"
           onclick="addTableDetailStandardCheck()">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="reportworld:table:detail:standard:check:edit">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-edit"
           onclick="editTableDetailStandardCheck()">修改</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="reportworld:table:detail:standard:check:del">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel"
           onclick="delTableDetailStandardCheck()">删除</a>
    </shiro:hasPermission>
</div>

<div id="dg"></div>


<div id="dlg" class="easyui-dialog" style="width:650px;height:410px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form id="myform" method="post">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <input type="hidden" name="id">
                <tr>
                    <td align="right">字段名称：</td>
                    <td>
                        <input class="easyui-validatebox" data-options="required:true"
                               missingMessage="请输入字段名称" id="columnName"
                               validType="checkColumnName['columnNameFirst','字段名称已经存在，请更换！']" name="columnName"/>
                        <!--新的-->
                        <input type="hidden" class="textbox" name="columnNameFirst" id="columnNameFirst"/><!--之前的-->
                    </td>
                </tr>
                <tr>
                    <td align="right">中文名称：</td>
                    <td>
                        <input class="easyui-validatebox" data-options="required:true" id="columnChineseName"
                               missingMessage="请输入表中文名" name="columnChineseName"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">字段类型：</td>
                    <td>
                        <input id="columnType" name="columnType" class="easyui-combobox"
                               data-options="required:false,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请维护字段类型" validType="comboxValidate['columnType','请输入字段类型']"/>
                    </td>
                </tr>
                <tr id="columnLengthTr">
                    <td align="right">字段长度：</td>
                    <td><input id="columnLength" name="columnLength" class="easyui-validatebox"
                               data-options="required:false"
                               missingMessage="请输入字段长度,必须数字！"></td>
                </tr>
                <tr id="columnDecimalTr">
                    <td align="right">字段位数：</td>
                    <td><input name="columnDecimal" class="easyui-validatebox"
                               data-options="required:false"
                               missingMessage="请输入字段位数,必须大于0正整数！" validType="integerZero"></td>
                </tr>
                <tr>
                    <td align="right">是否可为空：</td>
                    <td>
                        <input id="columnNull" name="columnNull" editable="false"
                               class="easyui-combobox" data-options="prompt:'==请选择==',panelHeight:'auto', valueField: 'label', textField: 'value',
                                    data: [{ label: '',  value: '==请选择==' },{ label: '1',  value: '是' },{ label: '2', value: '否'}]"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">默认值：</td>
                    <td colspan="3">
                        <input name="columnDefault" id="columnDefault" class="easyui-validatebox"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">是否主键：</td>
                    <td>
                        <input id="primaryKey" name="primaryKey" editable="false"
                               class="easyui-combobox" data-options="prompt:'==请选择==',panelHeight:'auto', valueField: 'label', textField: 'value',
                                    data: [{ label: '',  value: '==请选择==' },{ label: '1',  value: '是' },{ label: '2', value: '否'}]"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">状态：</td>
                    <td>
                        <input name="status" id="status"
                               data-options="valueField:'value',textField:'showmsg' ,panelHeight:'auto',prompt:'==请选择=='"
                               class="easyui-combobox" validType="comboxValidate['status','请选择状态']"/>
                    </td>
                </tr>
            </table>
        </div>

    </form>
</div>


<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/reportworld/tableDetailStandardCheck.js}"></script>
</body>
</html>
